<?php

class Application_Form_test extends Zend_Form
{

    public function init()
    {
    	$form1 = new Application_Model_DbTable_Formation();
    	// $form = $form1->fetchAll()->toArray();
    	$form = $form1->fetchAll();
    	$tmp=array();
    	$tmp['formation']="formation";
    	foreach ($form as $key => $value ){
    		$tmp[ $value['idformation'] ] = $value['idformation'];
    	
    	}
    	var_dump($tmp);
    	$option_values = array("multiOptions" => $tmp);
    	$form = new Zend_Form_Element_Select('Formation', $option_values);
    	$form->setLabel('Formation') ;
    	
    	
    	$this->addElements(array($form));
    }
}